﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Stamp_For_Africa_Version_2.Models;
using Stamp_For_Africa_Version_2.Repositories;

namespace Stamp_For_Africa_Version_2.ViewModels
{
  public class SearchFormViewModel
  {

    public IEnumerable<Stamp> SearchResults { get; set; }
    public String ImageSearchedFor { get; set; }
    public String NonRootedImageSearchedFor { get; set; }
		public bool SearchedWithImage { get; set; }

    public Guid CatalogueId { get; set; }
    public int CatalogueNumber { get; set; }

    public SelectList CatalogueList
    {
      get
      {
        CatalogueRepository repository = new CatalogueRepository();
        return new SelectList(repository.FindAllCatalogues(), "Id", "CatalogName", CatalogueId);
      }
    }
  }
}